package com.mall.service.impl;

import com.mall.dao.IGoodsDetailDao;
import com.mall.domain.ItemGoods;
import com.mall.service.IGoodsDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("goodsDetailService")
public class GoodsDetailServiceImp implements IGoodsDetailService {
    @Autowired
    private IGoodsDetailDao goodsDetailDao;

    /*
   查询商品详细信息
   * */
    @Override
    public ItemGoods findGoodsDetail(Integer goods_id){
        return goodsDetailDao.findListGoods(goods_id);
    }


    /*
	根据商品名城模糊查询商品
	*/
    @Override
    public List<ItemGoods> findItemGoodsByName(String name) {
        return  goodsDetailDao.findItemGoodsByName(name);
    }
}
